This Blog is Now Written in LaTeX

We are so back

05/11/2023

I’m gonna be honest, I didn’t think I could ever do it. But I did. I’ll write below all about the stages that development went through, so if you just want to look at the program and the docs, you can find all of that here.

It supports lots of formatting options. For example, we can format text in the normal types of ways, like bold, italics, bold italics, links (though those require the import of the hyperref package) and can support things like code syntax highlighting with the use of packages. Note that the packages do not need to actually be installed on the system because that isn’t how pandoc works. Don’t question it.

Images are much easier to insert too thankfully:
image

And I would have never thought about making tables before:

Shift Begins Ends
First 9:00 AM 5:00 PM
Second 5:00 PM 1:00 AM
Third 1:00 AM 9:00 AM

I don’t need to use <br><br> to start new paragraphs or anything anymore - life is good.

The idea first came from learning about Hugo, which many people have emailed me about, and it can compile Markdown documents into HTML. However, I don’t really like Markdown all that much because the syntax is weird to me, and it doesn’t have nearly as many features os a markup language like HTML. But it got me thinking about compiling Markup languages to HTML for something like a blog.

It was about a year ago that I first started using LaTeX seriously, and I quickly discovered that it’s the best markup language that mankind has been blessed with. It has nice syntax that’s easy to learn, it’s extensible, it’s flexible, and has plenty of features. However, the actual LaTeX compiler is pretty bloated. I run a lot of services on my server inside of Docker, just in case someone tries to root me or something that I have an extra layer of security. However, my server only has 15GB of storage, and a full LaTeX installation is around 7GB or so - ridiculous. So what was my solution?

I tried to use a minimal installation of LaTeX, but that didn’t provide htlatex, so I knew I would need a slightly larger package. I tried using one that did provide it, but as it turns out, it didn’t supply packages needed for anything useful, like hyperref which is used for links. So for a while I was just compiling the files on my local machine and seeing how things worked.

Eventually I got sick of constantly having to scp files back and forth, which prompted me to look up something like "compile latex to html" on a whim, which is when I found out about pandoc. Way less dependencies, way faster than htlatex - we ball.

I had received a few emails and a couple messages from readers of my blog that I should start putting the actual contents of my blog posts in my RSS feed, which I didn’t do before because it was tedious to do manually, but now I can do because it is all completely automated. I run "make" and everything is done for me basically, I just have to write the .tex files.

I’m gonna make a video about this soon, but I wanted to let you guys know first because, well, you’re reading the fruits of my labor.